<?php require 'src/View/adminhead.php';?>

        <div style="margin-left:auto;margin-right:auto; center;width:1000px;">
   <div style="margin-bottom: 10px"> <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist">所有</a>
    <a class="btn btn-default btn-sm"  href="index.php?c=admin&a=tasklist&class=2">计划中</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=3">待接手</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=4">待下单</a>  
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=5">待改价</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=6">待付款</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=7">待风控检查</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=8">代发货</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=9">到期收货</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=10">已完成</a>
    <a class="btn btn-default btn-sm" href="index.php?c=admin&a=tasklist&class=11">已失效</a>
    </div>
       <?php if($list) foreach($list as $val){ ?>
     <div class="btn btn-default dropdown-toggle" style="text-align:left">
           任务单号：<?php echo $val['task_id']; ?><br>
            标题：<?php echo $val['title']; ?><br>
            url：<?php echo $val['url']; ?><br>
            sku:<?php echo $val['sku']; ?><br>
            单价：<?php echo $val['price']; ?><br>
            购买数量：<?php echo $val['count']; ?><br>
            是否改价:<?php if($val['ischangeprice']==1){echo "要";}else{echo "不要";} ?><br>
            是否直达车：<?php if($val['isget']==1){echo "要";}else{echo "不要";} ?><br>
            任务次数：<?php echo $val['taskcount']; ?><br>
            手续费：<?php echo $val['servicecharge']; ?><br>
            确认收货：<?php switch ($val['gettimes'])
                        {
                        case 1:
                          echo "到时预约";
                          break;
                        case 2:
                          echo "7天后收货";
                          break;
                        case 3:
                          echo "14天后收货";
                          break;
                         case 4:
                          echo "不确认收货";
                          break;
                     
                        } ?><br>
            评分：<?php switch ($val['scores'])
                        {
                        case 5:
                          echo "全部5分";
                          break;
                        case 4:
                          echo "总体5名，明细4分或5分";
                          break;
                        case 0:
                          echo "全部不打分";
                          break;
                        } ?><br>
            发布时间：<?php echo $val['time']; ?><br>
            会员<a href="index.php?c=member&a=info&id=<?php echo $val['member_id']; ?>"><?php echo $val['member_id']; ?></a><br>
            钱：<?php echo $val['money']; ?>
                状态：<?php switch ($val['status'])
                        {
                        case 1:
                          echo "未付款";
                          break;
                        case 2:
                          echo "计划中";
                          break;
                        case 3:
                          echo "待接手";
                          break;
                         case 4:
                          echo "待下单";
                          break;
                      case 5:
                          echo "待改价";
                          break;
                      case 6:
                          echo "待付款";
                          break;
                      case 7:
                          echo "待风控检查";
                          break;
                      case 8:
                          echo "待发货";
                          break;
                      case 9:
                          echo "到期付款";
                          break;
                      case 10;
                          echo "已完成";
                          break;
                      case 11:
                          echo "已失效";
                          break;
                        }?> 
                        <?php if($val['status']<>1){?>
                            <br><div class="btn-group">
                            <button type="button" class="btn btn-default">操作：</button>
                             <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                              <span class="caret"></span>
                                  <span class="sr-only">Toggle Dropdown</span>
                                 </button>
                            <ul class="dropdown-menu" role="menu">
                            <li><a href="index.php?c=admin&a=checktasklist&class=2&id=<?php echo $val['task_id']; ?>">计划中</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=3&id=<?php echo $val['task_id']; ?>">待接手</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=4&id=<?php echo $val['task_id']; ?>">待下单</a> </li> 
                            <li><a href="index.php?c=admin&a=checktasklist&class=5&id=<?php echo $val['task_id']; ?>">待改价</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=6&id=<?php echo $val['task_id']; ?>">待付款</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=7&id=<?php echo $val['task_id']; ?>">待风控检查</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=8&id=<?php echo $val['task_id']; ?>">代发货</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=9&id=<?php echo $val['task_id']; ?>">到期收货</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=10&id=<?php echo $val['task_id']; ?>">已完成</a></li>
                            <li><a href="index.php?c=admin&a=checktasklist&class=11&id=<?php echo $val['task_id']; ?>">已失效</a></li>
                             </ul>
                            </div>
                       <?php } ?>
                     </div>  
       <?php }; ?>
	
		
    </body>

    <script src="web/js/jquery-2.1.1.min.js"></script>
    <script src="web/js/bootstrap-3.2.0.min.js"></script>
</html>